3 Application Interface > 3.17 GPIO Interface > 3.17.1 Using the GPIO10 Pin as Pulse Counter

3.17.1
The GPIO10 pin can be assigned two different functions selectable by AT command:
•
•
Both functions exclude each other. The pulse counter disables the GPIO functionality, and vice versa, the GPIO functionality disables the pulse counter. Detailed AT command descriptions can be found in [1].
The pulse counter is designed to measure signals from 0 to 1000 pulses per second. It can be operated either in Limit counter mode or Start-Stop mode. Depending on the selected mode the counted value is either the number of pulses or the time (in milliseconds) taken to generate a number of pulses specified with AT^SCCNT. For reliable pulse detection a duty cycle of 50% on a pulse signal with 1000 pulses per second is required. This means, that a "low"- resp. "high"-signal duration of at least 500µs is required. Shorter signals may lead to inaccuracy of the pulse detection.
In Limit counter mode, the displayed measurement result (URC “^SSCNT: <count>”) implies an inaccuracy <5ms. In Start-Stop mode, you can achieve 100% accuracy if you take care that no pulses are transmitted before starting the pulse counter (AT^SSCNT=0 or 1) and after clos­ing the pulse counter (AT^SSCNT=3).